import request from '@/utils/request'

// 查询費用明細列表
export function listCostItem(query) {
  return request({
    url: '/biz/costItem/list',
    method: 'get',
    params: query
  })
}

// 查询費用明細详细
export function getCostItem(id) {
  return request({
    url: '/biz/costItem/' + id,
    method: 'get'
  })
}

// 新增費用明細
export function addCostItem(data) {
  return request({
    url: '/biz/costItem',
    method: 'post',
    data: data
  })
}

// 修改費用明細
export function updateCostItem(data) {
  return request({
    url: '/biz/costItem',
    method: 'put',
    data: data
  })
}

// 删除費用明細
export function delCostItem(id) {
  return request({
    url: '/biz/costItem/' + id,
    method: 'delete'
  })
}
